\(\int \frac {\log (c (a+b x^3)^p)}{x^3} \, dx\) [21]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [F(-1)]
   Maxima [A] (verification not implemented)
   Giac [A] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 16, antiderivative size = 139 \[ \int \frac {\log \left (c \left (a+b x^3\right )^p\right )}{x^3} \, dx=-\frac {\sqrt {3} b^{2/3} p \arctan \left (\frac {\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt {3} \sqrt [3]{a}}\right )}{2 a^{2/3}}+\frac {b^{2/3} p \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{2 a^{2/3}}-\frac {b^{2/3} p \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{4 a^{2/3}}-\frac {\log \left (c \left (a+b x^3\right )^p\right )}{2 x^2} \]

[Out]

1/2*b^(2/3)*p*ln(a^(1/3)+b^(1/3)*x)/a^(2/3)-1/4*b^(2/3)*p*ln(a^(2/3)-a^(1/3)*b^(1/3)*x+b^(2/3)*x^2)/a^(2/3)-1/
2*ln(c*(b*x^3+a)^p)/x^2-1/2*b^(2/3)*p*arctan(1/3*(a^(1/3)-2*b^(1/3)*x)/a^(1/3)*3^(1/2))*3^(1/2)/a^(2/3)

Rubi [A] (verified)

Time = 0.05 (sec) , antiderivative size = 139, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.438, Rules used = {2505, 206, 31, 648, 631, 210, 642} \[ \int \frac {\log \left (c \left (a+b x^3\right )^p\right )}{x^3} \, dx=-\frac {\sqrt {3} b^{2/3} p \arctan \left (\frac {\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt {3} \sqrt [3]{a}}\right )}{2 a^{2/3}}-\frac {b^{2/3} p \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{4 a^{2/3}}+\frac {b^{2/3} p \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{2 a^{2/3}}-\frac {\log \left (c \left (a+b x^3\right )^p\right )}{2 x^2} \]

[In]

Int[Log[c*(a + b*x^3)^p]/x^3,x]

[Out]

-1/2*(Sqrt[3]*b^(2/3)*p*ArcTan[(a^(1/3) - 2*b^(1/3)*x)/(Sqrt[3]*a^(1/3))])/a^(2/3) + (b^(2/3)*p*Log[a^(1/3) +
b^(1/3)*x])/(2*a^(2/3)) - (b^(2/3)*p*Log[a^(2/3) - a^(1/3)*b^(1/3)*x + b^(2/3)*x^2])/(4*a^(2/3)) - Log[c*(a +
b*x^3)^p]/(2*x^2)

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 206

Int[((a_) + (b_.)*(x_)^3)^(-1), x_Symbol] :> Dist[1/(3*Rt[a, 3]^2), Int[1/(Rt[a, 3] + Rt[b, 3]*x), x], x] + Di
st[1/(3*Rt[a, 3]^2), Int[(2*Rt[a, 3] - Rt[b, 3]*x)/(Rt[a, 3]^2 - Rt[a, 3]*Rt[b, 3]*x + Rt[b, 3]^2*x^2), x], x]
 /; FreeQ[{a, b}, x]

Rule 210

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(-(Rt[-a, 2]*Rt[-b, 2])^(-1))*ArcTan[Rt[-b, 2]*(x/Rt[-a, 2])
], x] /; FreeQ[{a, b}, x] && PosQ[a/b] && (LtQ[a, 0] || LtQ[b, 0])

Rule 631

Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> With[{q = 1 - 4*Simplify[a*(c/b^2)]}, Dist[-2/b, Sub
st[Int[1/(q - x^2), x], x, 1 + 2*c*(x/b)], x] /; RationalQ[q] && (EqQ[q^2, 1] ||  !RationalQ[b^2 - 4*a*c])] /;
 FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 642

Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[d*(Log[RemoveContent[a + b*x +
c*x^2, x]]/b), x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[2*c*d - b*e, 0]

Rule 648

Int[((d_.) + (e_.)*(x_))/((a_) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Dist[(2*c*d - b*e)/(2*c), Int[1/(a +
 b*x + c*x^2), x], x] + Dist[e/(2*c), Int[(b + 2*c*x)/(a + b*x + c*x^2), x], x] /; FreeQ[{a, b, c, d, e}, x] &
& NeQ[2*c*d - b*e, 0] && NeQ[b^2 - 4*a*c, 0] &&  !NiceSqrtQ[b^2 - 4*a*c]

Rule 2505

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))*((f_.)*(x_))^(m_.), x_Symbol] :> Simp[(f*x)^(m +
 1)*((a + b*Log[c*(d + e*x^n)^p])/(f*(m + 1))), x] - Dist[b*e*n*(p/(f*(m + 1))), Int[x^(n - 1)*((f*x)^(m + 1)/
(d + e*x^n)), x], x] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] && NeQ[m, -1]

Rubi steps \begin{align*} \text {integral}& = -\frac {\log \left (c \left (a+b x^3\right )^p\right )}{2 x^2}+\frac {1}{2} (3 b p) \int \frac {1}{a+b x^3} \, dx \\ & = -\frac {\log \left (c \left (a+b x^3\right )^p\right )}{2 x^2}+\frac {(b p) \int \frac {1}{\sqrt [3]{a}+\sqrt [3]{b} x} \, dx}{2 a^{2/3}}+\frac {(b p) \int \frac {2 \sqrt [3]{a}-\sqrt [3]{b} x}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx}{2 a^{2/3}} \\ & = \frac {b^{2/3} p \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{2 a^{2/3}}-\frac {\log \left (c \left (a+b x^3\right )^p\right )}{2 x^2}-\frac {\left (b^{2/3} p\right ) \int \frac {-\sqrt [3]{a} \sqrt [3]{b}+2 b^{2/3} x}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx}{4 a^{2/3}}+\frac {(3 b p) \int \frac {1}{a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2} \, dx}{4 \sqrt [3]{a}} \\ & = \frac {b^{2/3} p \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{2 a^{2/3}}-\frac {b^{2/3} p \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{4 a^{2/3}}-\frac {\log \left (c \left (a+b x^3\right )^p\right )}{2 x^2}+\frac {\left (3 b^{2/3} p\right ) \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1-\frac {2 \sqrt [3]{b} x}{\sqrt [3]{a}}\right )}{2 a^{2/3}} \\ & = -\frac {\sqrt {3} b^{2/3} p \tan ^{-1}\left (\frac {\sqrt [3]{a}-2 \sqrt [3]{b} x}{\sqrt {3} \sqrt [3]{a}}\right )}{2 a^{2/3}}+\frac {b^{2/3} p \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )}{2 a^{2/3}}-\frac {b^{2/3} p \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )}{4 a^{2/3}}-\frac {\log \left (c \left (a+b x^3\right )^p\right )}{2 x^2} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.02 (sec) , antiderivative size = 134, normalized size of antiderivative = 0.96 \[ \int \frac {\log \left (c \left (a+b x^3\right )^p\right )}{x^3} \, dx=-\frac {2 \sqrt {3} b^{2/3} p x^2 \arctan \left (\frac {1-\frac {2 \sqrt [3]{b} x}{\sqrt [3]{a}}}{\sqrt {3}}\right )-2 b^{2/3} p x^2 \log \left (\sqrt [3]{a}+\sqrt [3]{b} x\right )+b^{2/3} p x^2 \log \left (a^{2/3}-\sqrt [3]{a} \sqrt [3]{b} x+b^{2/3} x^2\right )+2 a^{2/3} \log \left (c \left (a+b x^3\right )^p\right )}{4 a^{2/3} x^2} \]

[In]

Integrate[Log[c*(a + b*x^3)^p]/x^3,x]

[Out]

-1/4*(2*Sqrt[3]*b^(2/3)*p*x^2*ArcTan[(1 - (2*b^(1/3)*x)/a^(1/3))/Sqrt[3]] - 2*b^(2/3)*p*x^2*Log[a^(1/3) + b^(1
/3)*x] + b^(2/3)*p*x^2*Log[a^(2/3) - a^(1/3)*b^(1/3)*x + b^(2/3)*x^2] + 2*a^(2/3)*Log[c*(a + b*x^3)^p])/(a^(2/
3)*x^2)

Maple [A] (verified)

Time = 0.49 (sec) , antiderivative size = 113, normalized size of antiderivative = 0.81

method result size
parts \(-\frac {\ln \left (c \left (b \,x^{3}+a \right )^{p}\right )}{2 x^{2}}+\frac {3 p b \left (\frac {\ln \left (x +\left (\frac {a}{b}\right )^{\frac {1}{3}}\right )}{3 b \left (\frac {a}{b}\right )^{\frac {2}{3}}}-\frac {\ln \left (x^{2}-\left (\frac {a}{b}\right )^{\frac {1}{3}} x +\left (\frac {a}{b}\right )^{\frac {2}{3}}\right )}{6 b \left (\frac {a}{b}\right )^{\frac {2}{3}}}+\frac {\sqrt {3}\, \arctan \left (\frac {\sqrt {3}\, \left (\frac {2 x}{\left (\frac {a}{b}\right )^{\frac {1}{3}}}-1\right )}{3}\right )}{3 b \left (\frac {a}{b}\right )^{\frac {2}{3}}}\right )}{2}\) \(113\)
risch \(-\frac {\ln \left (\left (b \,x^{3}+a \right )^{p}\right )}{2 x^{2}}-\frac {i \pi \,\operatorname {csgn}\left (i \left (b \,x^{3}+a \right )^{p}\right ) {\operatorname {csgn}\left (i c \left (b \,x^{3}+a \right )^{p}\right )}^{2}-i \pi \,\operatorname {csgn}\left (i \left (b \,x^{3}+a \right )^{p}\right ) \operatorname {csgn}\left (i c \left (b \,x^{3}+a \right )^{p}\right ) \operatorname {csgn}\left (i c \right )-i \pi {\operatorname {csgn}\left (i c \left (b \,x^{3}+a \right )^{p}\right )}^{3}+i \pi {\operatorname {csgn}\left (i c \left (b \,x^{3}+a \right )^{p}\right )}^{2} \operatorname {csgn}\left (i c \right )-2 \left (\munderset {\textit {\_R} =\operatorname {RootOf}\left (a^{2} \textit {\_Z}^{3}-b^{2} p^{3}\right )}{\sum }\textit {\_R} \ln \left (\left (-4 \textit {\_R}^{3} a^{2}+3 b^{2} p^{3}\right ) x -a \,p^{2} \textit {\_R} b \right )\right ) x^{2}+2 \ln \left (c \right )}{4 x^{2}}\) \(197\)

[In]

int(ln(c*(b*x^3+a)^p)/x^3,x,method=_RETURNVERBOSE)

[Out]

-1/2*ln(c*(b*x^3+a)^p)/x^2+3/2*p*b*(1/3/b/(a/b)^(2/3)*ln(x+(a/b)^(1/3))-1/6/b/(a/b)^(2/3)*ln(x^2-(a/b)^(1/3)*x
+(a/b)^(2/3))+1/3/b/(a/b)^(2/3)*3^(1/2)*arctan(1/3*3^(1/2)*(2/(a/b)^(1/3)*x-1)))

Fricas [A] (verification not implemented)

none

Time = 0.33 (sec) , antiderivative size = 150, normalized size of antiderivative = 1.08 \[ \int \frac {\log \left (c \left (a+b x^3\right )^p\right )}{x^3} \, dx=\frac {2 \, \sqrt {3} p x^{2} \left (\frac {b^{2}}{a^{2}}\right )^{\frac {1}{3}} \arctan \left (\frac {2 \, \sqrt {3} a x \left (\frac {b^{2}}{a^{2}}\right )^{\frac {2}{3}} - \sqrt {3} b}{3 \, b}\right ) - p x^{2} \left (\frac {b^{2}}{a^{2}}\right )^{\frac {1}{3}} \log \left (b^{2} x^{2} - a b x \left (\frac {b^{2}}{a^{2}}\right )^{\frac {1}{3}} + a^{2} \left (\frac {b^{2}}{a^{2}}\right )^{\frac {2}{3}}\right ) + 2 \, p x^{2} \left (\frac {b^{2}}{a^{2}}\right )^{\frac {1}{3}} \log \left (b x + a \left (\frac {b^{2}}{a^{2}}\right )^{\frac {1}{3}}\right ) - 2 \, p \log \left (b x^{3} + a\right ) - 2 \, \log \left (c\right )}{4 \, x^{2}} \]

[In]

integrate(log(c*(b*x^3+a)^p)/x^3,x, algorithm="fricas")

[Out]

1/4*(2*sqrt(3)*p*x^2*(b^2/a^2)^(1/3)*arctan(1/3*(2*sqrt(3)*a*x*(b^2/a^2)^(2/3) - sqrt(3)*b)/b) - p*x^2*(b^2/a^
2)^(1/3)*log(b^2*x^2 - a*b*x*(b^2/a^2)^(1/3) + a^2*(b^2/a^2)^(2/3)) + 2*p*x^2*(b^2/a^2)^(1/3)*log(b*x + a*(b^2
/a^2)^(1/3)) - 2*p*log(b*x^3 + a) - 2*log(c))/x^2

Sympy [F(-1)]

Timed out. \[ \int \frac {\log \left (c \left (a+b x^3\right )^p\right )}{x^3} \, dx=\text {Timed out} \]

[In]

integrate(ln(c*(b*x**3+a)**p)/x**3,x)

[Out]

Timed out

Maxima [A] (verification not implemented)

none

Time = 0.28 (sec) , antiderivative size = 120, normalized size of antiderivative = 0.86 \[ \int \frac {\log \left (c \left (a+b x^3\right )^p\right )}{x^3} \, dx=\frac {1}{4} \, b p {\left (\frac {2 \, \sqrt {3} \arctan \left (\frac {\sqrt {3} {\left (2 \, x - \left (\frac {a}{b}\right )^{\frac {1}{3}}\right )}}{3 \, \left (\frac {a}{b}\right )^{\frac {1}{3}}}\right )}{b \left (\frac {a}{b}\right )^{\frac {2}{3}}} - \frac {\log \left (x^{2} - x \left (\frac {a}{b}\right )^{\frac {1}{3}} + \left (\frac {a}{b}\right )^{\frac {2}{3}}\right )}{b \left (\frac {a}{b}\right )^{\frac {2}{3}}} + \frac {2 \, \log \left (x + \left (\frac {a}{b}\right )^{\frac {1}{3}}\right )}{b \left (\frac {a}{b}\right )^{\frac {2}{3}}}\right )} - \frac {\log \left ({\left (b x^{3} + a\right )}^{p} c\right )}{2 \, x^{2}} \]

[In]

integrate(log(c*(b*x^3+a)^p)/x^3,x, algorithm="maxima")

[Out]

1/4*b*p*(2*sqrt(3)*arctan(1/3*sqrt(3)*(2*x - (a/b)^(1/3))/(a/b)^(1/3))/(b*(a/b)^(2/3)) - log(x^2 - x*(a/b)^(1/
3) + (a/b)^(2/3))/(b*(a/b)^(2/3)) + 2*log(x + (a/b)^(1/3))/(b*(a/b)^(2/3))) - 1/2*log((b*x^3 + a)^p*c)/x^2

Giac [A] (verification not implemented)

none

Time = 0.30 (sec) , antiderivative size = 138, normalized size of antiderivative = 0.99 \[ \int \frac {\log \left (c \left (a+b x^3\right )^p\right )}{x^3} \, dx=-\frac {1}{4} \, b p {\left (\frac {2 \, \left (-\frac {a}{b}\right )^{\frac {1}{3}} \log \left ({\left | x - \left (-\frac {a}{b}\right )^{\frac {1}{3}} \right |}\right )}{a} - \frac {2 \, \sqrt {3} \left (-a b^{2}\right )^{\frac {1}{3}} \arctan \left (\frac {\sqrt {3} {\left (2 \, x + \left (-\frac {a}{b}\right )^{\frac {1}{3}}\right )}}{3 \, \left (-\frac {a}{b}\right )^{\frac {1}{3}}}\right )}{a b} - \frac {\left (-a b^{2}\right )^{\frac {1}{3}} \log \left (x^{2} + x \left (-\frac {a}{b}\right )^{\frac {1}{3}} + \left (-\frac {a}{b}\right )^{\frac {2}{3}}\right )}{a b}\right )} - \frac {p \log \left (b x^{3} + a\right )}{2 \, x^{2}} - \frac {\log \left (c\right )}{2 \, x^{2}} \]

[In]

integrate(log(c*(b*x^3+a)^p)/x^3,x, algorithm="giac")

[Out]

-1/4*b*p*(2*(-a/b)^(1/3)*log(abs(x - (-a/b)^(1/3)))/a - 2*sqrt(3)*(-a*b^2)^(1/3)*arctan(1/3*sqrt(3)*(2*x + (-a
/b)^(1/3))/(-a/b)^(1/3))/(a*b) - (-a*b^2)^(1/3)*log(x^2 + x*(-a/b)^(1/3) + (-a/b)^(2/3))/(a*b)) - 1/2*p*log(b*
x^3 + a)/x^2 - 1/2*log(c)/x^2

Mupad [B] (verification not implemented)

Time = 3.80 (sec) , antiderivative size = 115, normalized size of antiderivative = 0.83 \[ \int \frac {\log \left (c \left (a+b x^3\right )^p\right )}{x^3} \, dx=\frac {b^{2/3}\,p\,\ln \left (b^{1/3}\,x+a^{1/3}\right )}{2\,a^{2/3}}-\frac {\ln \left (c\,{\left (b\,x^3+a\right )}^p\right )}{2\,x^2}-\frac {b^{2/3}\,p\,\ln \left (2\,b^{1/3}\,x-a^{1/3}-\sqrt {3}\,a^{1/3}\,1{}\mathrm {i}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )}{2\,a^{2/3}}+\frac {b^{2/3}\,p\,\ln \left (2\,b^{1/3}\,x-a^{1/3}+\sqrt {3}\,a^{1/3}\,1{}\mathrm {i}\right )\,\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )}{2\,a^{2/3}} \]

[In]

int(log(c*(a + b*x^3)^p)/x^3,x)

[Out]

(b^(2/3)*p*log(b^(1/3)*x + a^(1/3)))/(2*a^(2/3)) - log(c*(a + b*x^3)^p)/(2*x^2) - (b^(2/3)*p*log(2*b^(1/3)*x -
 3^(1/2)*a^(1/3)*1i - a^(1/3))*((3^(1/2)*1i)/2 + 1/2))/(2*a^(2/3)) + (b^(2/3)*p*log(3^(1/2)*a^(1/3)*1i + 2*b^(
1/3)*x - a^(1/3))*((3^(1/2)*1i)/2 - 1/2))/(2*a^(2/3))